package com.weds.test_service.component;

import com.weds.test_service.entity.User;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description
 * @Author lihw
 * @Date 2024/2/29 10:50
 */
@Component
public class TestComponent {

    public void dealUser(List<User> list) {
        System.out.println(list);
    }

    public List<User> getUser(){
        User user = new User();
        user.setUserId(1);
        user.setUserName("lhw");
        List<User> list = new ArrayList<>();
        list.add(user);
        return list;
    }
}
